package com.iurac.service;

import com.iurac.domain.Book;
import com.iurac.exception.ManageException;
import com.iurac.vo.BorrowVo;
import com.iurac.vo.EchartsVo;

import java.util.List;
import java.util.Map;

public interface BookService {

    List<Book> getBooksByConditionInPage(int page,String info,String[] type,boolean stock);

    Book getBooksById(String id);

    List<Book> getBooksByCondition(String title, String press, String author, String minPrice,
                                   String maxPrice, boolean stock, String[] type);

    EchartsVo getBookTypeCharts();

    Map<String, Object> getDateAboutBook();

    boolean deleteBookById(String id) throws ManageException;

    boolean saveBook(Book book) throws ManageException;

    boolean updateBook(Book book) throws ManageException;

    List<Book> getBooksBySerialNumber(String serialNumber);
}
